package org.paradise.dms.dao.impl;

import java.sql.Connection;
import java.sql.PreparedStatement;

import org.apache.log4j.Logger;
import org.paradise.dms.pojo.BaseException;
import org.paradise.dms.pojo.MessageOut;
import org.paradise.dms.util.MessageOutUtil;

import com.dheaven.framework.dao.DaoException;
/**
 * 
 * Description: 发件箱
 * 
 * @version1.1 李韦 
 * @return
 */

public class MessageOutTwoDaoImpl extends  BaseDaoImpl<MessageOut>{
	private static Logger log = Logger.getLogger(MessageOutTwoDaoImpl.class);
	public MessageOutTwoDaoImpl() {
		super.setTableName(DataTable.getDataTableName("messageout"));
	}
	/**
	 * 
	 * Description: 增加一条发送状态
	 * 
	 * @Version1.0李韦创建
	 * @throws DaoException
	 */

	@Override
	protected PreparedStatement getAdd(Connection conn, MessageOut t,String tableName)
			throws BaseException {
		return MessageOutUtil.getInsertPreparedStatement(conn, t,tableName);
	}
	
}